//
//  BKOperation.h
//  XPhoto
//
//  Created by baboy on 2019/6/25.
//  Copyright © 2019 baboy. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface BKOperation : NSOperation{
    BOOL _finished;
    BOOL _executing;
    BOOL _asynchronous;
}
@property (readonly, copy) NSArray<void (^)(void)> *executionBlocks;
- (void)setAsynchronous:(BOOL)asynchronous;
+ (instancetype)blockOperationWithBlock:(void (^)(void))block;

- (void)addExecutionBlock:(void (^)(void))block;

- (void)updateFinishedStatus:(BOOL)flag;
@end

NS_ASSUME_NONNULL_END
